package cn.edu.scau.cmi.liujianxun.singleton;

public class Chairman {

	private static Chairman chairman;
	private String name;
	
	private Chairman(String n) {
		this.name = n;
	}
	
	public static Chairman getInstance(String name) {
		if(chairman == null && name != null) {
			chairman = new Chairman(name);
			return null;
		}
		return chairman;
	}
	
	public static String getName() {
		return chairman.name;
	}
}
